using System;
using System.Windows.Forms;

namespace Logger
{
    ///<summary>
    /// Range picked for custom report
    ///</summary>
    public partial class ReportRangePicker : Form
    {
        private DateTime _startTime;
        private DateTime _endTime;

        ///<summary>
        /// No-arg constructor
        ///</summary>
        public ReportRangePicker()
        {
            InitializeComponent();
        }

        ///<summary>
        /// Start time
        ///</summary>
        public DateTime StartTime
        {
            get { return _startTime; }
        }

        ///<summary>
        /// End time
        ///</summary>
        public DateTime EndTime
        {
            get { return _endTime; }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            /* Retrieving only the date
             * component. Issue 6 */
            _startTime = dtpStart.Value.Date;
            _endTime = dtpEnd.Value.Date;
        }
    }
}